package engine.entities;

public class Energy {
	int max;
	int value;

	public Energy(int maxEnergy) {
		this.max = maxEnergy;
		this.value = maxEnergy;
	}

	public int getMaximum() {
		return this.max;
	}

	public void setMaximum(int max) {
		this.max = max;
	}

	public int getValue() {
		return this.value;
	}

	public void setValue(int energy) {
		this.value = energy;
	}

	public int add(int units) {
		value += units;
		return value;
	}

}
